let obj = {
    name: "巧克力",
    sex: "女",
    age: 4,
    mm: function ()
{
    console.log("喵喵喵")
}
}
let obj2={
    _name:null,
    get name(){
        return this._name
    },
    set name(value){
        this._name=value
    }
}
// 不需要特地调用get和set方法,用到自然会调用
obj2.name="巧克力"
console.log(obj2.name)
// 可以随时添加和删除属性或方法
obj2.sex="neko"
console.log(obj2.sex)
delete obj2.sex
obj2.mm=function(){
    console.log("喵喵喵")
}
obj2.mm()
delete obj2.mm